package service.impl;

import java.util.ArrayList;

import dao.impl.HouseDaoImpl;
import entity.House;
import service.IHouseService;

public class HouseServiceImpl implements IHouseService{
	
	private HouseDaoImpl hdi = new HouseDaoImpl();

	@Override
	public boolean save(House t) {
		return hdi.save(t);
	}

	@Override
	public boolean delete(House t) {
		return hdi.delete(t);
	}

	@Override
	public boolean update(House t) {
		return hdi.update(t);
	}

	@Override
	public House selectById(int id) {
		return hdi.selectById(id);
	}

	@Override
	public ArrayList<House> selectAll() {
		return hdi.selectAll();
	}

	@Override
	public boolean rent(House house) {
		return hdi.rent(house);
	}

	@Override
	public boolean back(House house) {
		return hdi.back(house);
	}

	@Override
	public ArrayList<House> selectByPrice(int lowerPrice, int highPrice) {
		return hdi.selectByPrice(lowerPrice, highPrice);
	}

	@Override
	public ArrayList<House> selectNoRent() {
		return hdi.selectNoRent();
	}

	@Override
	public ArrayList<House> sortByPrice() {
		return hdi.sortByPrice();
	}

}
